package com.ruoyi.custservice.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;

import com.ruoyi.custservice.service.LoanOrderDetailService;

/**
 * 借款申请Controller
 *
 * @author african-loan
 * @date 2021-04-15
 */
@RestController
@RequestMapping("/business/LoanOrderDetail")
public class LoanDetailController extends BaseController {
    @Autowired
    private LoanOrderDetailService loanOrderDetailService;

    /**
     * 获取借款申请详细信息
     */
    @PreAuthorize("@ss.hasPermi('business:LoanOrder:info')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return AjaxResult.success(loanOrderDetailService.selectLoanOrderInfoById(id));
    }

   
}
